import { avatarApi, multiavatar } from '@/api/common';
import { IMessage } from '@/views/home/chat/types';
import { nanoid } from 'nanoid';
import newFriend from '../asstes/new-friend.png';
import chatFriend from '../asstes/only-chat.png';
import groupPng from '../asstes/group.png';
import gzh from '../asstes/gzh.png';

export interface IFakeMessage {
  text: string;
}
export interface IContact {
  name: string;
  avatar: string;
  group: string;
  message: IMessage[];
  wx: string;
  area: string;
  id: string;
  fakeMessage: IFakeMessage[];
}

export interface IContactGroup {
  group: string;
  list: IContact[];
}

export const contactList = [
  {
    title: '新的朋友',
    img: newFriend,
  },
  {
    title: '仅聊天的朋友',
    img: chatFriend,
  },
  {
    title: '群聊',
    img: groupPng,
  },
  {
    title: '公众号',
    img: gzh,
  },
];
/* 26个字母的数组 */
export const letters = [
  'A',
  'B',
  'C',
  'D',
  'E',
  'F',
  'G',
  'H',
  'I',
  'J',
  'K',
  'L',
  'M',
  'N',
  'O',
  'P',
  'Q',
  'R',
  'S',
  'T',
  'U',
  'V',
  'W',
  'X',
  'Y',
  'Z',
];
